<template>
<div class="comment">
  <div class="head">
    <img :src="comment.touxiang" alt="" width="40" height="40">
    <span>{{ comment.name }}</span>
  </div>
  <div class="content">
    <p>{{ comment.content }}</p>
  </div>
  <div class="imgs">
    <div v-for="(img,index) in comment.imgs" :key="index">
      <img :src="img" alt="">
    </div>
  </div>

</div>
</template>

<script setup>
const props = defineProps(["comment"]);

</script>

<style scoped>
.comment{
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.head{
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  background: white;
}
.content{
  margin-bottom: 10px;
}
.imgs{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.imgs img{
  width: 100px;
  height: 100px;
}
</style>